﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace BaseInfoManagerDal.Migrations
{
    public partial class ewer : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "module_db",
                columns: table => new
                {
                    module_code = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    module_name = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
                    parent_code = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
                    module_level = table.Column<int>(type: "int", nullable: false),
                    is_menu = table.Column<int>(type: "int", nullable: false),
                    is_action = table.Column<int>(type: "int", nullable: false),
                    action_url = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    order_by = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    module_status = table.Column<int>(type: "int", nullable: false),
                    creator_name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    creator_date = table.Column<DateTime>(type: "datetime2", nullable: false),
                    modifi_name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    modifi_date = table.Column<DateTime>(type: "datetime2", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_module_db", x => x.module_code);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "module_db");
        }
    }
}
